<template>
	<view >
		<view class="remen">
			<view class="remen-title u-f u-f-js u-f-ac">
				<view class="title">热门分类</view>
				<view class="more u-f u-f-ac" @tap="toTopicNav">更多<view class="icon iconfont icon-jinru"></view></view>
			</view>
			<view class="remen-category u-f u-f-ja">
				<block v-for="(item,index) in nav" :key='index'>
					<view>{{item.name}}</view>
				</block>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			nav:Array
		},
		methods:{
			toTopicNav(){
				uni.navigateTo({
					url:'../../pages/topic-nav/topic-nav'
				})
			}
		}
	}
</script>

<style scoped>
	.remen {
		border-bottom: 1upx solid #eee;
		border-top: 1upx solid #eee;
		padding: 20upx;
	
	}
	
	.remen-category {
		margin-top: 20upx;
	}
	
	.remen-category>view {
		background-color: #F7F7F7;
		padding: 10upx 25upx;
		border-radius: 10upx;
		font-size: 28upx;
		color: #a3a3a3;
		margin-bottom: 15upx;
	}
	
	.remen-title {
		font-size: 32upx;
	}
	
	.remen-title .title {
		color: #333;
	}
	
	.remen-title .more {
		color: #d6d6d6;
	}
	
</style>
